package com.xycake.dao;

import com.xycake.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xycake.entity.UserExtend;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xycake
 * @since 2023-12-26
 */
//@Mapper
public interface UserMapper extends BaseMapper<User> {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);



    User selectByUsername(String username);

    List<UserExtend> selectUserAllByAccount(String account);

    List<UserExtend> updateAllUserListEdit(User user);

    List<UserExtend> selectAllUserList(Integer id);

    void insertUserById(User user);

    User selectByAccount(String username);
}
